import java.util.Scanner;

public class SwitchExercise {
    public static void main(String[] args) {

        System.out.println("请输入123表示石头剪刀布");
        Scanner sc=new Scanner(System.in);
        int playerHand=sc.nextInt();
        switch (playerHand)
        {
            case 1:
                System.out.println("玩家出剪刀");
                break;
            case 2:
                System.out.println("玩家出石头");
                break;
            case 3:
                System.out.println("玩家出布");
                break;
        }


        int computerHand=(int)(Math.random()*3)+1;

        switch (computerHand)
        {
            case 1:
                System.out.println("电脑出剪刀");
                break;
            case 2:
                System.out.println("电脑出石头");
                break;
            case 3:
                System.out.println("电脑出布");
                break;
        }

        if(computerHand==playerHand)
            System.out.println("平");
        else if((playerHand==1&&computerHand==2)||(playerHand==2&&computerHand==1)||(playerHand==3&&computerHand==2))
            System.out.println("玩家赢");
        else
            System.out.println("电脑赢");
    }

}
